package com.lh.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.api.vo.UserAddrVo;
import com.lh.common.entity.admin.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserAddressMapper extends BaseMapper<UserAddress> {
    UserAddrVo getDefaultAddress(Long userId);

    int updateByKey(UserAddress userAddress);

    List<UserAddrVo> selectByUserId(Long userId);

    int chanelDefault(Long userId);

    void delAddress(@Param("userId") Long userId, @Param("uaid") Long uaid);
}
